<!DOCTYPE html>
<style>
    math { background: red }
    math.x { background: green }
</style>
<math class="x">Text</math>
